package com.msoe.client;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.msoe.client.dataaccess.SimpleUser;

public interface MSOERServerAsync
{
	public void addUser(String username, String fname, String lname, String email, AsyncCallback<Boolean> callback);
	public void getUser(int userID, AsyncCallback<SimpleUser> callback);
	public void authenticateUser(String username, String password, AsyncCallback<SimpleUser> callback);
	public void setVerified(String username, boolean verified, AsyncCallback<Boolean> callback);
	public void getBanned(String username, AsyncCallback<Boolean> callback);
	public void addRide(String username,String LatStart,String LngStart,String LatEnd,String LngEnd,
				String leavingDate, int numSeats,AsyncCallback<Boolean> callback);
	public void changePassword(String username,String newPassword,AsyncCallback<Boolean> callback);
	//public void getRidesByDate(String timeLeaveing, AsyncCallback<Boolean> callback);
}
